from django.contrib import admin
from django.urls import path, include, re_path

from Project.settings import DEBUG, MEDIA_ROOT
from problem import views

urlpatterns = [
    path('ques/', views.Ques.as_view()),
]
if DEBUG:
    from django.views.static import serve

    urlpatterns.append(re_path(r'^media/(.*)$', serve, kwargs={'document_root': MEDIA_ROOT}))
